package cn.com.nes.common.packet;

public class CommandResponse extends AbstractPacket {

    private String message;
    private Boolean isSuccess;
    private Object data;

    public CommandResponse(Long sequenceNumber) {
        super(sequenceNumber);
    }

    @Override
    public PacketType getType() {
        return PacketType.RESPONSE;
    }

    public String getMessage() {
        return message;
    }

    public CommandResponse setMessage(String message) {
        this.message = message;
        return this;
    }

    public Boolean getSuccess() {
        return isSuccess;
    }

    public CommandResponse setSuccess(Boolean success) {
        isSuccess = success;
        return this;
    }

    public Object getData() {
        return data;
    }

    public CommandResponse setData(Object data) {
        this.data = data;
        return this;
    }
}
